package com.awt.layoutManager;

import java.awt.*;

/**
 * @authoer zsj
 * @date 2023/4/15 12:40
 */
public class FlowLayoutDemo {

    public static void main(String[] args) {
        Frame frame = new Frame("flow_layout_demo");
        //frame.setLayout(new FlowLayout(FlowLayout.LEFT,20,20));
        frame.setLayout(new FlowLayout(FlowLayout.CENTER, 20, 20));

        for (int i = 0; i < 100; i++) {
            frame.add(new Button("按钮" + i));
        }
        frame.pack();

        frame.setVisible(true);
    }
}
